@extends('common.admin_template')

@section('content')
    <div class="boxWidth">
        <h3>表单详情</h3>
        @include('common.notice_msg')
        @if($Form->type == 'active')
            <div class="row editFormItem t_c">
                <div class="col-xs-1"></div>
                <div class="col-xs-4 formBorderLeft">活动名称</div>
                <div class="col-xs-6 formBorder">{{$Value->name}}</div>
                <div class="col-xs-1"></div>
            </div>
            <div class="row editFormItem t_c">
                <div class="col-xs-1"></div>
                <div class="col-xs-4 formBorderLeft">城市地区</div>
                <div class="col-xs-6 formBorder">{{$Value->city.' '.$Value->area}}</div>
                <div class="col-xs-1"></div>
            </div>
            <div class="row editFormItem t_c">
                <div class="col-xs-1"></div>
                <div class="col-xs-4 formBorderLeft">地址</div>
                <div class="col-xs-6 formBorder">{{$Value->address}}</div>
                <div class="col-xs-1"></div>
            </div>
            <div class="row editFormItem t_c">
                <div class="col-xs-1"></div>
                <div class="col-xs-4 formBorderLeft">人数</div>
                <div class="col-xs-6 formBorder">{{$Value->peoples}}</div>
                <div class="col-xs-1"></div>
            </div>
            <div class="row editFormItem t_c">
                <div class="col-xs-1"></div>
                <div class="col-xs-4 formBorderLeft">主办方</div>
                <div class="col-xs-6 formBorder">{{$Value->organizers}}</div>
                <div class="col-xs-1"></div>
            </div>
            <div class="row editFormItem t_c">
                <div class="col-xs-1"></div>
                <div class="col-xs-4 formBorderLeft">票价</div>
                <div class="col-xs-6 formBorder">{{$Value->price}}</div>
                <div class="col-xs-1"></div>
            </div>
            <div class="row editFormItem t_c">
                <div class="col-xs-1"></div>
                <div class="col-xs-4 formBorderLeft">开始时间</div>
                <div class="col-xs-6 formBorder">{{$Value->activeTime}}</div>
                <div class="col-xs-1"></div>
            </div>
            <div class="row editFormItem t_c">
                <div class="col-xs-1"></div>
                <div class="col-xs-4 formBorderLeft">结束时间</div>
                <div class="col-xs-6 formBorder">{{$Value->endTime}}</div>
                <div class="col-xs-1"></div>
            </div>
            <div class="row editFormItem t_c">
                <div class="col-xs-1"></div>
                <div class="col-xs-4 formBorderLeft">活动内容</div>
                <div class="col-xs-6 formBorder">{{$Value->content}}</div>
                <div class="col-xs-1"></div>
            </div>
        @elseif($Form->type == 'coupon')
            <?php $Name = ["联系人","联系电话","营业执照"]; ?>
            @foreach($Value as $k=>$v)
                <div class="row editFormItem t_c {{$k==2?'formCoupon':''}}">
                    <div class="col-xs-1"></div>
                    <div class="col-xs-4 formBorderLeft">{{$Name[$k]}}</div>
                    @if($k==2)
                    <div class="col-xs-6 formBorder formCoupon"><img src="{{$v}}"></div>
                    @else
                    <div class="col-xs-6 formBorder">{{$v}}</div>
                    @endif
                    <div class="col-xs-1"></div>
                </div>
            @endforeach
        @else
            @if($Form->type == 'user')
                <?php $Name = ["联系人","联系电话","公司信息","公司简介"]; ?>
            @endif
            @foreach($Value as $k=>$v)
                {{--@if($k<4)--}}
                <div class="row editFormItem t_c">
                    <div class="col-xs-1"></div>
                    <div class="col-xs-4 formBorderLeft">{{$Name[$k]}}</div>
                    <div class="col-xs-6 formBorder">{{$v}}</div>
                    <div class="col-xs-1"></div>
                </div>
                {{--@endif--}}
            @endforeach
        @endif
        <div class="row editFormItem t_c"></div>
        <div class="row editFormItem t_c"></div>
        <div class="row editFormItem t_c">
            <div class="col-xs-1"></div>
            <div class="col-xs-4 formBorderLeft">申请用户</div>
            <div class="col-xs-6 formBorder">{{$Form->name}}</div>
            <div class="col-xs-1"></div>
        </div>
        <div class="row editFormItem t_c">
            <div class="col-xs-1"></div>
            <div class="col-xs-4 formBorderLeft">申请时间</div>
            <div class="col-xs-6 formBorder">{{$Form->created_at}}</div>
            <div class="col-xs-1"></div>
        </div>
    </div>
@stop
@section('js')
    <script>
    </script>
@stop